Skip to content

Take a wakelock when reading#16

Open
bobrippling wants to merge 1 commit into
filipesabella:masterfrom
bobrippling:wakelock
Open

Take a wakelock when reading#16
bobrippling wants to merge 1 commit into
filipesabella:masterfrom
bobrippling:wakelock

Conversation

@bobrippling
Copy link
Copy Markdown

@bobrippling bobrippling commented Jan 17, 2026

This prevents the display from sleeping while people are reading long texts.

Happy to add a setting if desired.

Chose to not propagate the async nature, figured it wouldn't have much of an impact if the wakelock isn't waited on. This does mean the logic is a little more involved to handle a take() after a drop() but before the wakelock has been released, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant